import request from '@/utils/request'

// 查询总店批发列表
export function listPifa(query) {
  return request({
    url: '/system/pifa/list',
    method: 'get',
    params: query
  })
}

// 查询总店批发详细
export function getPifa(id) {
  return request({
    url: '/system/pifa/' + id,
    method: 'get'
  })
}

// 新增总店批发
export function addPifa(data) {
  return request({
    url: '/system/pifa',
    method: 'post',
    data: data
  })
}

// 修改总店批发
export function updatePifa(data) {
  return request({
    url: '/system/pifa',
    method: 'put',
    data: data
  })
}

// 删除总店批发
export function delPifa(id) {
  return request({
    url: '/system/pifa/' + id,
    method: 'delete'
  })
}
